﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="MainNew.aspx.cs" Inherits="CRM.Web.MainNew" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title></title>
    <link href="<%= base.ResourcesPath + "Style/main.css" %>"  rel="stylesheet" type="text/css" />
    <script type="text/javascript" src="<%= base.ResourcesPath %>Js/jquery-1.6.2.min.js" ></script>
    <script type="text/javascript" src="<%= base.ResourcesPath %>Js/button.js"></script>
    <script type="text/javascript" >
//        (function($) {
//            $.fn.wresize = function(f) {
//                version = '1.1';
//                wresize = { fired: false, width: 0 };

//                function resizeOnce() {
//                    if ($.browser.msie) {
//                        if (!wresize.fired) {
//                            wresize.fired = true;
//                        }
//                        else {
//                            var version = parseInt($.browser.version, 10);
//                            wresize.fired = false;
//                            if (version < 7) {
//                                return false;
//                            }
//                            else if (version == 7) {
//                                //a vertical resize is fired once, an horizontal resize twice  
//                                var width = $(window).width();
//                                if (width != wresize.width) {
//                                    wresize.width = width;
//                                    return false;
//                                }
//                            }
//                        }
//                    }
//                    return true;
//                }
//                function handleWResize(e) {
//                    if (resizeOnce()) {
//                        return f.apply(this, [e]);
//                    }
//                }
//                this.each(function() {
//                    if (this == window) {
//                        $(this).resize(handleWResize);
//                    }
//                    else {
//                        $(this).resize(f);
//                    }
//                });
//                return this;
//            };

//        })(jQuery);

//        $(document).ready(function() {
//            var ifameHeight = $(window).height();
//            try {
//                window.document.getElementById('frameMainRightTop').style.height = ifameHeight + 'px';
//                window.document.getElementById('frameMainLeftTop').style.height = (ifameHeight - 2) / 2 + 'px';
//                window.document.getElementById('frameMainLeftButtom').style.height = (ifameHeight - 2) / 2 + 'px';
//            }
//            catch (ex) {
//            };

//            $(window).wresize(body_resize);
//        });

//    function body_resize() {
//        //    alert("resize event trigger");
//        var ifameHeight = $(window).height();        
//        try {
//            window.document.getElementById('frameMainRightTop').style.height = ifameHeight + 'px';
//            window.document.getElementById('frameMainLeftTop').style.height = (ifameHeight - 2) / 2 + 'px';
//            window.document.getElementById('frameMainLeftButtom').style.height = (ifameHeight - 2) / 2 + 'px';
//        }
//        catch (ex) {
//        };
//    }
    </script>
    
    
</head>
<body>
    <form id="form1" runat="server">
    <div id="mainDiv" >
    <table id="mainTable" border="0" cellpadding="0" cellspacing="0" width="100%" style="margin-top: 2px; ">
        <tr>
            <td width="50%" valign="top" >
                <iframe id="frameMainLeftTop"  name="frameMainLeftTop" src="MainManage/Message.aspx" width="100%"  scrolling="yes" frameborder="0" height="260"  ></iframe>
            </td>
            <td rowspan="3" style="width: 5px;" ></td>
            <td rowspan="3"  valign="top" >
                <iframe id="frameMainRightTop" name="frameMainRightTop" src="MainManage/ToDoWorkOrder.aspx" width="100%"  scrolling="yes"  frameborder="0"  height="500"   ></iframe>
            </td>
        </tr>
        <tr>
            <td style="line-height: 5px; height: 5px;">&nbsp;</td>
        </tr>
        <tr>
            <td  valign="top" >
                <iframe  id="frameMainLeftButtom" name="frameMainLeftButtom" src="MainManage/ToDoOutbound.aspx" width="100%"  scrolling="yes" frameborder="0"  height="260"    ></iframe>
            </td>
        </tr>
    </table>
    </div>
    </form>
</body>
</html>
